<%@ include file="includes/top.jsp"%>

<table align="left" bgcolor="#008800" border="0" cellspacing="2" cellpadding="2">
	<tr>
		<td bgcolor="#FFFF88">
			<s:a action="/shop/index.do">
				<b><font color="BLACK" size="2">&lt;&lt; Main Menu</font></b>
			</s:a>
		</td>
	</tr>
</table>

<table align="center" bgcolor="#008800" border="0" cellspacing="2" cellpadding="3">
	<tr bgcolor="#CCCCCC">
		<td>&nbsp;</td>
		<td><b>Product ID</b></td>
		<td><b>Name</b></td>
	</tr>
	
	<s:iterator value="product" id="${productList.pageList}">
	
		<tr bgcolor="#FFFF88">
			<td>
				<s:a action="/shop/viewProduct.do">
					<s:param name="productId" value="${product.productId}"/>
					<s:property value="${product.description}"/>
				</s:a>
			</td>
			
			<td>
				<s:a action="/shop/viewProduct.do">
					<s:param name="productId" value="${product.productId}"/>
					<b><font color="BLACK"><s:property value="${product.productId}" /></font></b>
				</s:a>
			</td>
			
			<td><s:property value="${product.name}" />
			</td>
		</tr>
	</s:iterator>
	
	<tr>
		<td>
			<s:if test="${!productList.firstPage}">
				<s:a href="?page=previous">
					<font color="white"><B>&lt;&lt;Prev</B></font>
				</s:a>
			</s:if>
			
			<s:if test="${!productList.lastPage}">
				<s:a href="?page=next">
					<font color="white"><B>Next&gt;&gt;</B></font>
				</s:a>
		</s:if>
		</td>
	</tr>

</table>

<%@ include file="includes/bottom.jsp"%>
